Skip to content

[stable31] fix(sharing): Prevent empty password when checkbox is enabled#59201

Merged
skjnldsv merged 3 commits intostable31from
backport/59200/stable31
Mar 26, 2026
Merged

[stable31] fix(sharing): Prevent empty password when checkbox is enabled#59201
skjnldsv merged 3 commits intostable31from
backport/59200/stable31

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Mar 25, 2026

Backport of PR #58226

nfebe added 2 commits March 25, 2026 15:26
Set passwordProtectedState explicitly when initializing shares with
default passwords. This ensures the checkbox state is tracked
independently of the password value, preventing it from unchecking
when the password field is cleared.

Also block saving new shares when password protection is enabled but
no password is entered, regardless of enforcement settings.

Added passWithNoTests to vitest configs to handle Vue 2/3 dual
frontend test runs gracefully.

Fixes: #57732, #57011
Signed-off-by: nfebe <fenn25.fn@gmail.com>
@skjnldsv
Copy link
Member

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@skjnldsv skjnldsv merged commit 17ceec8 into stable31 Mar 26, 2026
118 of 119 checks passed
@skjnldsv skjnldsv deleted the backport/59200/stable31 branch March 26, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants